package top.lingkang.finalgateway.utils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author lingkang
 * @create by 2024/5/17 17:44
 */
public class ThreadPoolUtils {
    private static final ExecutorService threadPool = Executors.newFixedThreadPool(3);

    public static void addTask(Runnable runnable){
        threadPool.submit(runnable);
    }
}
